<!DOCTYPE html>
<html lang="en" dir="ltr" class="client-nojs">
<head>
<meta charset="UTF-8" />
<title>Hugin lensdb - PanoTools.org Wiki</title>
<meta http-equiv="X-UA-Compatible" content="IE=EDGE" />
<meta name="generator" content="MediaWiki 1.23.6" />






<style media="screen" type="text/css" title="Screen style sheet"> @import url(manual.css); </style>

<style>a:lang(ar),a:lang(kk-arab),a:lang(mzn),a:lang(ps),a:lang(ur){text-decoration:none}
/* cache key: panotools_wiki:resourceloader:filter:minify-css:7:90730a7865ba4b50e0b837e1821ff0a3 */</style>



<!--[if lt IE 7]><style type="text/css">body{behavior:url("/skins/vector/csshover.min.htc")}</style><![endif]--></head>
<body class="mediawiki ltr sitedir-ltr ns-0 ns-subject page-Hugin_lensdb skin-vector action-view vector-animateLayout">
		
		
		<div id="content" class="mw-body" role="main">
			<a id="top"></a>
			
						<h1 id="firstHeading" class="firstHeading" lang="en"><span dir="auto">Hugin lensdb</span></h1>
						<div id="bodyContent">
								<div id="siteSub">From PanoTools.org Wiki</div>
								
												
				<div id="mw-content-text" lang="en" dir="ltr" class="mw-content-ltr"><p><b>hugin_lensdb</b> is a maintenance tool for Hugins camera and lens database.
</p><p>The database is automatically filled when stitching a project file from Hugin. Entries can also manually added from <a href="Hugin.html" title="Hugin">Hugin</a> and <a href="Calibrate_lens_gui.html" title="Calibrate lens gui">calibrate_lens_gui</a>.
</p><p>The information are used when adding image files to a project. Distortion and vignetting data can also manually loaded inside Hugin.
</p>
<h2><span class="mw-headline" id="Usage">Usage</span></h2>
<pre> hugin_lensdb [--recursive] --populate BASEPATH
</pre>
<p>Fills the database with information from all pto files in BASEPATH. With the switch <tt>--recursive</tt> the search goes also into all subfolders.
</p>
<pre> hugin_lensdb --compress
</pre>
<p>Compresses the database by replacing all single entries with the average values.
</p>
<h2><span class="mw-headline" id="Database_maintenance">Database maintenance</span></h2>
<p><b>hugin_lensdb</b> provides also some functions to maintain the database. Use these functions with responsibility.
</p>
<pre> hugin_lensdb --export-database=FILENAME
</pre>
<p>Exports all entries of the database into the given (text) file.
</p>
<pre> hugin_lensdb --import-from-file=FILENAME
</pre>
<p>Import the entries of the given (text) file into the existing database.
</p>
<pre> hugin_lensdb --remove-lens=LENS
</pre>
<p>Removes all entries for the given lens from the database. For cameras with fixed lens use <tt>MAKER|MODEL</tt> as search string.
</p>
<pre> hugin_lensdb --remove-camera=MAKER|MODEL
</pre>
<p>Removes all entries for the given camera from the database.
</p>



</div>								<div class="printfooter">
				Retrieved from "http://wiki.panotools.org/index.php?title=Hugin_lensdb&amp;oldid=15722<a class="external" href="http://wiki.panotools.org/index.php?title=Hugin_lensdb&amp;oldid=15722">[*]</a>"				</div>
												</div></div></body></html>